import tkinter as tk
 
top = tk.Tk()
 
e = tk.Entry(top)
e.pack(padx=20, pady=20)
 
e.delete(0, "end")
e.insert(0, "默认文本...")
 
top.mainloop()
